package chapter4;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 编写程序，提示用户输入一个字符串，显示他的长度和第一个字符
 * 			这道题目过于简单了
 * Date:2021/4/2
 * ***************************************************************
 */
public class exc4_20 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.print("Enter a String:");
		String s=input.next();
		
		int len=s.length();
		
		char ch=s.charAt(0);
		
		System.out.printf("len is %d , the first  character is %c .", len,ch);
		
	}

}
